#include "stdafx.h"
#include "multithread.h"
#include "terminal.h"
namespace rco {


void PutThread::run()
{
	exec();
}

bool PutThread::SetIODevice(RcoIOTerminal* pIODevice)
{
	m_pIODevice = pIODevice;
	return true;
}

void PutThread::customEvent(QEvent * event)
{
	switch(event->type())
	{
	case DirectoryData::DirData:
		{
			DirectoryData* wkEvent = static_cast<DirectoryData*>(event);
			RDirCache::CacheDirectoryInfo(wkEvent->pathName, caches);
		}
		break;
	default:
		QThread::customEvent(event);
	}
}

}